package com.koron.order.perambulate.mapper;

import com.koron.order.perambulate.bean.query.CheckQuery;
import com.koron.order.perambulate.bean.query.LinePeramQuery;
import com.koron.order.perambulate.bean.query.PeramOrderQuery;
import com.koron.order.perambulate.bean.vo.LineMonitorVo;
import com.koron.order.perambulate.bean.vo.LinePerambulateVo;
import com.koron.order.perambulate.bean.vo.MonitorChangeVo;
import com.koron.order.perambulate.bean.vo.PerambulateOrderVo;
import com.koron.order.risk.base.bean.po.LineRisk;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: PerambulateMapper
 * @Description:
 * @Date: 2023/1/31
 * @Author: 李一辰
 * @Version: 1.0
 **/
@Mapper
public interface PerambulateMapper {

    List<LinePeramQuery> list(@Param("query") LinePeramQuery linePeramQuery);

    LinePeramQuery getLinePeramDetailById(@Param("id")String id);

    Integer BatchInsert(@Param("list") List<LinePerambulateVo> list);

    List<LineRisk> getRiskSubandKeyword();

    List<PerambulateOrderVo>  getPeramList(@Param("query") PeramOrderQuery peramOrderQuery);

    Integer insert(@Param("query") PerambulateOrderVo perambulateOrderVo);

    List<LineMonitorVo> monitorList(@Param("query") CheckQuery checkQuery);

    LineMonitorVo getMonitorDetailById(@Param("id")String id);



    Integer BatchInsert1(@Param("list") List<MonitorChangeVo> monitorChangeVos);

    String getParamId(@Param("typeId") String typeId);

    String getDeptByIdAndParamId (@Param("id") String id ,@Param("paramId") String paramId);

    Integer InsertSinglePerm(@Param("bean") LinePerambulateVo linePerambulateVo);
}
